﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="UseCar.aspx.cs" Inherits="ServicesSheet_UseCar" %>

<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="Services_UseCars" cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="WEmp" runat="server" selectalias="Usasdb" selectcommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdatasource id="wdsCars" runat="server" selectalias="Usasdb" selectcommand="select Services_SV_Cars.CarId,&#13;&#10;Services_SV_Cars.CarName,&#13;&#10;Services_SV_Cars.PassengerNum,&#13;&#10;Services_SV_Cars.PerKMCost &#13;&#10;from &#13;&#10;Services_SV_Cars"
        cachedataset="True">
    </infolight:webdatasource>
    <infolight:webdefault id="WebDefault1" runat="server" datamember="Services_UseCars"
        datasourceid="Master">
        <fields>
                    <InfoLight:DefaultFieldItem DefaultValue="-1" FieldName="UseCarId" />
                    <InfoLight:DefaultFieldItem DefaultValue="_Today" FieldName="UCDate" />
                    <InfoLight:DefaultFieldItem DefaultValue="GetEmpId()" FieldName="EmployeeId" />
                    <InfoLight:DefaultFieldItem DefaultValue="8" FieldName="UOutHour" />
                    <InfoLight:DefaultFieldItem DefaultValue="30" FieldName="UOutMinute" />
                    <InfoLight:DefaultFieldItem DefaultValue="17" FieldName="UBackHour" />
                    <InfoLight:DefaultFieldItem DefaultValue="00" FieldName="UBackMinute" />
                    <InfoLight:DefaultFieldItem DefaultValue="GetEmpId()" FieldName="UserId" />
                </fields>
    </infolight:webdefault>
    <infolight:webvalidate id="WebValidate1" runat="server" altrowcss="" datamember="Services_UseCars"
        datasourceid="Master" forecolor="Red" rowcss="">
        <fields>
<InfoLight:ValidateFieldItem FieldName="EmployeeId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="UCDate" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="UserId"></InfoLight:ValidateFieldItem>
</fields>
    </infolight:webvalidate>
    <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server" BindingObject="wfvMaster"
        ShowDataStyle="FormViewStyle" StatusStrip="WebStatusStrip1" CtlHeight="25" OnBeforeCommand="FLWebNavigator1_BeforeCommand"
        CssClass="NavigatorBar" Width="100%" oncommand="FLWebNavigator1_Command">
        <NavControls>
            <infolight:controlitem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Add3_C.gif" imageurl="../Image/UIPics/Add_C.gif"
                mouseoverimageurl="../Image/UIPics/Add2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Update" controltext="update" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Edit3_C.gif" imageurl="../Image/UIPics/Edit_C.gif"
                mouseoverimageurl="../Image/UIPics/Edit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Delete" controltext="delete" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Delete3_C.gif" imageurl="../Image/UIPics/Delete_C.gif"
                mouseoverimageurl="../Image/UIPics/Delete2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Apply" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Apply3_C.gif" imageurl="../Image/UIPics/Apply_C.gif"
                mouseoverimageurl="../Image/UIPics/Apply2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Abort" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Abort3_C.gif" imageurl="../Image/UIPics/Abort_C.gif"
                mouseoverimageurl="../Image/UIPics/Abort2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Query" controltext="query" controltype="Image"
                controlvisible="True" disenableimageurl="../image/uipics/Query3_C.gif" imageurl="../image/uipics/Query_C.gif"
                mouseoverimageurl="../image/uipics/Query2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Submit" controltext="submit" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Submit_C.gif"
                mouseoverimageurl="../image/uipics/Submit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Approve" controltext="approve" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../Image/UIPics/Approve_C.gif"
                mouseoverimageurl="../Image/UIPics/Approve2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Return" controltext="return" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Return_C.gif"
                mouseoverimageurl="../image/uipics/Return2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Reject" controltext="reject" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Reject_C.gif"
                mouseoverimageurl="../image/uipics/Reject2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Notify" controltext="notify" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Notify_C.gif"
                mouseoverimageurl="../image/uipics/Notify2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="FlowDelete" controltext="flowdelete" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/FlowDelete_C.gif"
                mouseoverimageurl="../image/uipics/FlowDelete2_C.gif" size="70">
            </infolight:controlitem>
            <infolight:controlitem controlname="Plus" controltext="plus" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Plus_C.gif"
                mouseoverimageurl="../image/uipics/Plus2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Pause" controltext="pause" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Pause_C.gif"
                mouseoverimageurl="../image/uipics/Pause2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Comment" controltext="comment" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Comment_C.gif"
                mouseoverimageurl="../image/uipics/Comment2_C.gif" size="48">
            </infolight:controlitem>
        </NavControls>
        <NavStates>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Initial">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Browsed">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Inserting">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Editing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Applying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                statetext="Changing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Querying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Printing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Normal">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Add" statetext="Insert">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Update" statetext="Modify">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query" statetext="Inquery">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query;Update" statetext="Prepare">
            </infolight:webnavigatorstateitem>
        </NavStates>
        <FLStates>
            <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
            <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
            <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
        </FLStates>
    </FLTools:FLWebNavigator>
    <infolight:webformview id="wfvMaster" runat="server" datasourceid="Master" width="100%"
        cellpadding="5" layoutcolnum="2" forecolor="#333333" backcolor="Silver" bordercolor="White"
        borderstyle="Groove" borderwidth="2px" ondatabound="wfvMaster_DataBound">
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True" />
        <editrowstyle backcolor="LightCyan" forecolor="Blue" />
        <rowstyle backcolor="#EFF3FB" forecolor="Navy" />
        <pagerstyle forecolor="White" horizontalalign="Center" backcolor="PowderBlue" />
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <insertrowstyle backcolor="LightCyan" forecolor="Blue" />
        <edititemtemplate>
                <table style="width: 639px">
                    <tr>
                        <td style="width: 91px; height: 32px">
                            <asp:Label ID="CaptionUseCarId" runat="server" Text="用车编码:" Width="64px"></asp:Label></td>
                        <td style="width: 89px; height: 32px">
                            <asp:TextBox ID="UseCarIdTextBox" runat="server" Text='<%# Bind("UseCarId") %>' Width="120px"
                                ReadOnly="True"></asp:TextBox></td>
                        <td style="width: 100px; height: 32px">
                            <asp:Label ID="CaptionUCDate" runat="server" Text="用车日期*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 100px; height: 32px">
                        
                                          
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                                Text='<%# Bind("UCDate", "{0:d}") %>' CssClass="Wdate" Width="150px"/></asp:TextBox>
</td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionEmployeeId" runat="server" Text="车辆申请者:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px" BackColor="#E0E0E0">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="CaptionPeoCount" runat="server" Text="乘车人数:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="PeoCountTextBox" runat="server" Text='<%# Bind("PeoCount") %>' Width="150px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label5" runat="server" Text="车辆使用者*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal4" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("UserId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px" BackColor="#E0E0E0">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="使用部门:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="150px" ReadOnly="True" Text='<%# Bind("DepartmentName") %>' BackColor="Silver"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCarId" runat="server" Text="车辆编码:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal2" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("CarId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="CarId" DataSourceID="wdsCars" DataTextField="CarName" DataValueField="CarId"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="115px" BackColor="Silver">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="CarId" HeadText="车辆编码" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="CarName" HeadText="车辆名称" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="PassengerNum" HeadText="最多乘客人数" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="PerKMCost" HeadText="每公里成本" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            &nbsp;<asp:Label ID="CaptionClient" runat="server" Text="客户有否:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:CheckBox ID="ClientCheckBox" runat="server" Checked='<%# Bind("Client") %>' Width="136px" /></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label2" runat="server" Text="出车时间*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 89px">
                            <table>
                                <tr>
                                    <td style="width: 13px">
                                        <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                            DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UOutHour") %>'
                                            Width="40px">
                                                <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                        </InfoLight:WebDropDownList></td>
                                    <td style="width: 13px">
                                        时</td>
                                    <td style="width: 31px">
                                        <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False"
                                            DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UOutMinute") %>'
                                            Width="40px">
                                            <asp:ListItem>00</asp:ListItem>
                                            <asp:ListItem>30</asp:ListItem>
                                        </InfoLight:WebDropDownList></td>
                                    <td style="width: 15px">
                                        分</td>
                                </tr>
                            </table>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label3" runat="server" Text="预计回来时间:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 100px">
                            <span style="color: black">
                                <table>
                                    <tr>
                                        <td style="width: 5px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UBackHour") %>'
                                                Width="40px">
                                                <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 2px">
                                            时</td>
                                        <td style="width: 33px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UBackMinute") %>'
                                                Width="40px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 12px">
                                            分</td>
                                    </tr>
                                </table>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionGetOnAddress" runat="server" Text="上车地点:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="GetOnAddressTextBox" runat="server" Text='<%# Bind("GetOnAddress") %>'
                                Width="459px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCause" runat="server" Text="用车事由:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="CauseTextBox" runat="server" Text='<%# Bind("Cause") %>' Width="459px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px; height: 26px;">
                            <asp:Label ID="CaptionPreWay" runat="server" Text="预计行驶路线:" Width="84px"></asp:Label></td>
                        <td colspan="3" style="height: 26px">
                            <asp:TextBox ID="PreWayTextBox" runat="server" Text='<%# Bind("PreWay") %>' Width="459px"></asp:TextBox></td>
                    </tr>
                </table>
            </edititemtemplate>
        <insertitemtemplate>
                <table style="width: 639px">
                    <tr>
                        <td style="width: 91px; height: 32px">
                            <asp:Label ID="CaptionUseCarId" runat="server" Text="用车编码:" Width="64px"></asp:Label></td>
                        <td style="width: 89px; height: 32px">
                            <asp:TextBox ID="UseCarIdTextBox" runat="server" Text='<%# Bind("UseCarId") %>' Width="120px"
                                ReadOnly="True"></asp:TextBox></td>
                        <td style="width: 100px; height: 32px">
                            <asp:Label ID="CaptionUCDate" runat="server" Text="用车日期*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 100px; height: 32px">
                        
                        
<asp:TextBox ID="ZLTextBox1" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                                Text='<%# Bind("UCDate", "{0:d}") %>' CssClass="Wdate" Width="150px"/></asp:TextBox>

</cc1:ZLTextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionEmployeeId" runat="server" Text="车辆申请者:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="CaptionPeoCount" runat="server" Text="乘车人数:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="PeoCountTextBox" runat="server" Text='<%# Bind("PeoCount") %>' Width="150px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label6" runat="server" Text="车辆使用者*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 89px"><InfoLight:WebRefVal ID="WebRefVal5" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("UserId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="UserId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                        </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="使用部门:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="TextBox1" runat="server" Width="150px" ReadOnly="True" Text='<%# Bind("DepartmentName") %>' BackColor="Silver"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCarId" runat="server" Text="车辆编码:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal2" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("CarId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="CarId" DataSourceID="wdsCars" DataTextField="CarName" DataValueField="CarId"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="115px" BackColor="Silver">
                                <Columns>
                                    <InfoLight:WebRefColumn ColumnName="CarId" HeadText="车辆编码" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="CarName" HeadText="车辆名称" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="PassengerNum" HeadText="最多乘客人数" Width="100" />
                                    <InfoLight:WebRefColumn ColumnName="PerKMCost" HeadText="每公里成本" Width="100" />
                                </Columns>
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="CaptionClient" runat="server" Text="客户有否:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:CheckBox ID="ClientCheckBox" runat="server" Checked='<%# Bind("Client") %>' Width="142px" /></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label2" runat="server" Text="出车时间*:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 89px">
                            <span style="color: black"></span><span style="color: black">
                                <table>
                                    <tr>
                                        <td style="width: 13px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UOutHour") %>'
                                                Width="40px">
                                               <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 13px">
                                            时</td>
                                        <td style="width: 31px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UOutMinute") %>'
                                                Width="40px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 15px">
                                            分</td>
                                    </tr>
                                </table>
                            </span>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label3" runat="server" Text="预计回来时间:" ForeColor="Red"></asp:Label></td>
                        <td style="width: 100px">
                            <span style="color: black"></span><span style="color: black">
                                <table>
                                    <tr>
                                        <td style="width: 5px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UBackHour") %>'
                                                Width="40px">
                                                <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 2px">
                                            时</td>
                                        <td style="width: 33px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Filter="" FilterObject="" OnlyShowSelectText="False" SelectedValue='<%# Bind("UBackMinute") %>'
                                                Width="40px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 12px">
                                            分</td>
                                    </tr>
                                </table>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionGetOnAddress" runat="server" Text="上车地点:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="GetOnAddressTextBox" runat="server" Text='<%# Bind("GetOnAddress") %>'
                                Width="459px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCause" runat="server" Text="用车事由:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="CauseTextBox" runat="server" Text='<%# Bind("Cause") %>' Width="459px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px; height: 26px;">
                            <asp:Label ID="CaptionPreWay" runat="server" Text="预计行驶路线:" Width="84px"></asp:Label></td>
                        <td colspan="3" style="height: 26px">
                            <asp:TextBox ID="PreWayTextBox" runat="server" Text='<%# Bind("PreWay") %>' Width="459px"></asp:TextBox></td>
                    </tr>
                </table>
            </insertitemtemplate>
        <itemtemplate>
                <table style="width: 639px">
                    <tr>
                        <td style="width: 91px; height: 32px">
                            <asp:Label ID="CaptionUseCarId" runat="server" Text="用车编码:" Width="64px"></asp:Label></td>
                        <td style="width: 89px; height: 32px">
                            <asp:TextBox ID="UseCarIdTextBox" runat="server" ReadOnly="True" Text='<%# Bind("UseCarId") %>'
                                Width="120px"></asp:TextBox></td>
                        <td style="width: 100px; height: 32px">
                            <asp:Label ID="CaptionUCDate" runat="server" Text="用车日期:"></asp:Label></td>
                        <td style="width: 100px; height: 32px">
                            <asp:TextBox ID="UCDateTextBox" runat="server" ReadOnly="True" Text='<%# Bind("UCDate","{0:d}") %>'
                                Width="150px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionEmployeeId" runat="server" Text="车辆申请者:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("EmployeeId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="CaptionPeoCount" runat="server" Text="乘车人数:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="PeoCountTextBox" runat="server" ReadOnly="True" Text='<%# Bind("PeoCount") %>'
                                Width="150px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label4" runat="server" Text="车辆使用者:"></asp:Label></td>
                        <td style="width: 89px"><InfoLight:WebRefVal ID="WebRefVal3" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("UserId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                        </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label1" runat="server" Text="使用部门:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:TextBox ID="TextBox1" runat="server" ReadOnly="True" Width="150px" Text='<%# Bind("DepartmentName") %>'></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCarId" runat="server" Text="车辆编码:"></asp:Label></td>
                        <td style="width: 89px">
                            <InfoLight:WebRefVal ID="WebRefVal2" runat="server" AllowAddData="False" BindingText=""
                                BindingValue='<%# Bind("CarId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                DataBindingField="CarId" DataSourceID="wdsCars" DataTextField="CarName" DataValueField="CarId"
                                MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="120px">
                            </InfoLight:WebRefVal>
                        </td>
                        <td style="width: 100px">
                            &nbsp;<asp:Label ID="CaptionClient" runat="server" Text="客户有否:"></asp:Label></td>
                        <td style="width: 100px">
                            <asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("Client") %>' />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="Label2" runat="server" Text="出车时间:"></asp:Label></td>
                        <td style="width: 89px">
                            <span style="color: black">
                                <table style="border-collapse: collapse;">
                                    <tr>
                                        <td style="width: 13px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList1" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Enabled="False" Filter="" FilterObject="" OnlyShowSelectText="False"
                                                SelectedValue='<%# Bind("UOutHour") %>' Width="40px">
                                                <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 13px">
                                            时</td>
                                        <td style="width: 31px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList2" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Enabled="False" Filter="" FilterObject="" OnlyShowSelectText="False"
                                                SelectedValue='<%# Bind("UOutMinute") %>' Width="40px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 15px">
                                            分</td>
                                    </tr>
                                </table>
                            </span>
                        </td>
                        <td style="width: 100px">
                            <asp:Label ID="Label3" runat="server" Text="预计回来时间:"></asp:Label></td>
                        <td style="width: 100px">
                            <span style="color: black">
                                <table style="border-collapse: collapse;">
                                    <tr>
                                        <td style="width: 5px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList3" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Enabled="False" Filter="" FilterObject="" OnlyShowSelectText="False"
                                                SelectedValue='<%# Bind("UBackHour") %>' Width="40px">
                                                <asp:ListItem>0</asp:ListItem>
                                                <asp:ListItem>1</asp:ListItem>
                                                <asp:ListItem>2</asp:ListItem>
                                                <asp:ListItem>3</asp:ListItem>
                                                <asp:ListItem>4</asp:ListItem>
                                                <asp:ListItem>5</asp:ListItem>
                                                <asp:ListItem>6</asp:ListItem>
                                                <asp:ListItem>7</asp:ListItem>
                                                <asp:ListItem>8</asp:ListItem>
                                                <asp:ListItem>9</asp:ListItem>
                                                <asp:ListItem>10</asp:ListItem>
                                                <asp:ListItem>11</asp:ListItem>
                                                <asp:ListItem>12</asp:ListItem>
                                                <asp:ListItem>13</asp:ListItem>
                                                <asp:ListItem>14</asp:ListItem>
                                                <asp:ListItem>15</asp:ListItem>
                                                <asp:ListItem>16</asp:ListItem>
                                                <asp:ListItem>17</asp:ListItem>
                                                <asp:ListItem>18</asp:ListItem>
                                                <asp:ListItem>19</asp:ListItem>
                                                <asp:ListItem>20</asp:ListItem>
                                                <asp:ListItem>21</asp:ListItem>
                                                <asp:ListItem>22</asp:ListItem>
                                                <asp:ListItem>23</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 2px">
                                            时</td>
                                        <td style="width: 33px">
                                            <InfoLight:WebDropDownList ID="WebDropDownList4" runat="server" AutoInsertEmptyData="False"
                                                DriverObject="" Enabled="False" Filter="" FilterObject="" OnlyShowSelectText="False"
                                                SelectedValue='<%# Bind("UBackMinute") %>' Width="40px">
                                                <asp:ListItem>00</asp:ListItem>
                                                <asp:ListItem>30</asp:ListItem>
                                            </InfoLight:WebDropDownList></td>
                                        <td style="width: 12px">
                                            分</td>
                                    </tr>
                                </table>
                            </span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionGetOnAddress" runat="server" Text="上车地点:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="GetOnAddressTextBox" runat="server" ReadOnly="True" Text='<%# Bind("GetOnAddress") %>'
                                Width="459px"></asp:TextBox>&nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 91px">
                            <asp:Label ID="CaptionCause" runat="server" Text="用车事由:"></asp:Label></td>
                        <td colspan="3">
                            <asp:TextBox ID="CauseTextBox" runat="server" ReadOnly="True" Text='<%# Bind("Cause") %>'
                                Width="459px"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td style="width: 91px; height: 26px;">
                            <asp:Label ID="CaptionPreWay" runat="server" Text="预计行驶路线:" Width="84px"></asp:Label></td>
                        <td colspan="3" style="height: 26px">
                            <asp:TextBox ID="PreWayTextBox" runat="server" ReadOnly="True" Text='<%# Bind("PreWay") %>'
                                Width="459px"></asp:TextBox></td>
                    </tr>
                </table>
            </itemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="UseCarIdTextBox" FieldName="UseCarId" />
                <InfoLight:FormViewField ControlID="ZLTextBox1" FieldName="UCDate" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmployeeId" />
                <InfoLight:FormViewField ControlID="WebDropDownList1" FieldName="UOutHour" />
                <InfoLight:FormViewField ControlID="WebDropDownList2" FieldName="UOutMinute" />
                <InfoLight:FormViewField ControlID="WebDropDownList3" FieldName="UBackHour" />
                <InfoLight:FormViewField ControlID="WebDropDownList4" FieldName="UBackMinute" />
                <InfoLight:FormViewField ControlID="WebRefVal5" FieldName="UserId" />
            </fields>
    </infolight:webformview>
</asp:Content>
